<html>
<head>
    <title>Test Cookie</title>
    {% include 'base/header.html' %}
</head>
<body>
    <h3>Test Cookie</h3>
    <div>Info: {{ info }}</div>
    <p>this is pagraph...</p>
    <button onclick="funGet()">GetCookie</button>
    <button onclick="funGet2()">GetCookie2</button>
</body>
{% include 'base/footer_test.html' %}

<script>
    function funGet() {
        console.log('>> funGet')
        var ck = getCookie('testname')
        console.log('cookie testname: ' + ck)
        alert('cookie testname: ' + ck)
    }
    function funGet2() {
        console.log('>> funGet2')
        var ck = getCookie('name')
        console.log('cookie name: ' + ck)
        alert('cookie name: ' + ck)
    }
</script>

</html>
